package com.java8.ch05;

// Use a string to control a switch statement
public class StringSwitch {

	public static void main(String[] args) {
		String str = "two";
		switch (str) {
		case "one":
			System.out.println("one");
			break;
		case "two":
			System.out.println("two");
			break;
		case "three":
			System.out.println("three");
			break;
		default:
			System.out.println("no match");
			break;
		}
	}
}
